//
//  WQHomeEditFootView.m
//  WisdomQuestor
//
//  Created by 纪景城 on 2024/12/18.
//

#import "WQHomeEditFootView.h"

@implementation WQHomeEditFootView

- (instancetype)init
{
    self = [super init];
    if (self) {
        self.backgroundColor = UIColor.clearColor;
        
        [self addSubviews:[NSArray arrayWithObjects:self.editButton, nil]];
        [self fragmentUI_ViewSet];
    }
    return self;
}

#pragma mark ------- Lazy Methods -------

- (void)fragmentUI_ViewSet {
    [self.editButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self);
        make.top.equalTo(self.mas_top).offset(kFragmemtFloat(20));
        make.size.mas_equalTo(kSizzleKapadate(84, 36));
    }];
}

- (UIButton *)editButton {
    if (!_editButton) {
        _editButton = [UIButton initWithTitle:@"    编辑" titleColor:k_Color_C6E1F4 mediumFontSize:14];
        [_editButton setImage:kImageName(@"home_tablefoot_edit") forState:0];
        _editButton.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:0.3];
        _editButton.cornerRadius = kFragmemtFloat(18);
    }
    return _editButton;
}



@end
